package service

import (
	"gorm.io/gorm"
	"writerhelper/global"
	"writerhelper/model"
	"writerhelper/params"
)

type bookService struct {
	*gorm.DB
}

func NewBookService() *bookService {
	return &bookService{global.MysqlDB}
}

func (bs *bookService) ChangeBookInfo(params params.ChangeBookInfo, book model.Book) {
	//1. 通过params查询对应的数据库，

	//	2. 将需要更改的数据进行更改
}
